import { LAYOUT, EXCEPTION_COMPONENT } from '@/router/constant'

// import { asyncRoutes } from '@/router/routes';

// const newRoutes = {};
// function generateRouteMap(routes) {
//   return routes.map((item) => {
//     if (item.children && item.children.length > 0) {
//       generateRouteMap(item.children);
//     }
//     newRoutes[item.name] = item.component;
//   });
// }

// generateRouteMap(asyncRoutes);

// console.log('新映射： ', newRoutes)

// export const ROUTE_MAP = newRoutes;



export const ROUTE_MAP = {
  Dashboard: LAYOUT,
  Abount: LAYOUT,
  Charts: LAYOUT,
  Analysis: () => import('/@/views/dashboard/analysis/index.vue'),
  Workbench: () => import('/@/views/dashboard/workbench/index.vue'),
  NOT_FOUND: () => EXCEPTION_COMPONENT,
  PageNotFound: () => EXCEPTION_COMPONENT,
  AbountPage: () => import('@/views/sys/about/index.vue'),
  BaiduMap: () => import('@/views/demo/charts/map/Baidu.vue'),
}